<template>
	<view >
		<button @click="onLog">console.log</button>
		<button @click="onDebug">console.onDebug</button>
		<button @click="info">console.info</button>
		<button @click="onwarn()"type=warn>console.warn</button>
		<button @click="onError()"type=warn>console.warn</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'打印日志'
			}
		},
		methods: {
			onLog(){
				console.log("onlog()"+this.title);
				// clog
				console.log("clog");
				// clog
				console.log('this.title:',this.title);
				// 带,有空格
				console.log('this.title:'+this.title);
				// 不带,直接连接
				console.log('this.title:',this.title,this.name,this.pwd);
			},
			onwarn(){
				if(name === 'wzy'){
					console,log("")
				}
			}
		}
	}
</script>

<style>

</style>
